Right now we only destroy the bgManager object when the
workspaceThumbnail is explicitly destroy with its destroy()
method.
This commit makes sure bgManager gets destroyed when the
workspaceThumbnail actor is destroyed without calling
destroy().
https://bugzilla.gnome.org/show_bug.cgi?id=696157
},
destroy : function() {
- this.actor.destroy();
- this._bgManager.destroy();
- this._bgManager = null;
+ if (this.actor)
+ this.actor.destroy();
},
workspaceRemoved : function() {
_onDestroy: function(actor) {
this.workspaceRemoved();
+ if (this._bgManager) {
+ this._bgManager.destroy();
+ this._bgManager = null;
+ }
+
this._windows = [];
this.actor = null;
},